<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WoniuNote Test Report</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        .header {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .summary-item {
            background-color: #fff;
            padding: 15px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-align: center;
        }
        .summary-item h3 {
            margin: 0;
            color: #666;
        }
        .summary-item .value {
            font-size: 24px;
            font-weight: bold;
            margin: 10px 0;
        }
        .summary-item.passed .value { color: #28a745; }
        .summary-item.failed .value { color: #dc3545; }
        .summary-item.skipped .value { color: #ffc107; }
        .test-results {
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .test-results table {
            width: 100%;
            border-collapse: collapse;
        }
        .test-results th,
        .test-results td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }
        .test-results th {
            background-color: #f8f9fa;
            font-weight: bold;
        }
        .test-results tr:hover {
            background-color: #f8f9fa;
        }
        .status {
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: bold;
        }
        .status.passed { background-color: #d4edda; color: #155724; }
        .status.failed { background-color: #f8d7da; color: #721c24; }
        .status.skipped { background-color: #fff3cd; color: #856404; }
        .error-details {
            background-color: #f8f9fa;
            padding: 10px;
            border-radius: 3px;
            margin-top: 5px;
            font-family: monospace;
            white-space: pre-wrap;
        }
        .timestamp {
            color: #666;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>WoniuNote Test Report</h1>
            <p class="timestamp">生成时间: 2025-05-28 21:04:59</p>
        </div>

        <div class="summary">
            <div class="summary-item">
                <h3>总测试数</h3>
                <div class="value">2</div>
            </div>
            <div class="summary-item passed">
                <h3>通过</h3>
                <div class="value">1</div>
            </div>
            <div class="summary-item failed">
                <h3>失败</h3>
                <div class="value">1</div>
            </div>
            <div class="summary-item skipped">
                <h3>跳过</h3>
                <div class="value">0</div>
            </div>
            <div class="summary-item">
                <h3>通过率</h3>
                <div class="value">50.0%</div>
            </div>
        </div>

        <div class="test-results">
            <table>
                <thead>
                    <tr>
                        <th>测试名称</th>
                        <th>类名</th>
                        <th>状态</th>
                        <th>耗时</th>
                        <th>详情</th>
                    </tr>
                </thead>
                <tbody>
                    
                    <tr>
                        <td>test_example</td>
                        <td>TestExample</td>
                        <td>
                            <span class="status passed">
                                PASSED
                            </span>
                        </td>
                        <td>0.100s</td>
                        <td>
                            
                        </td>
                    </tr>
                    
                    <tr>
                        <td>test_failure</td>
                        <td>TestExample</td>
                        <td>
                            <span class="status failed">
                                FAILED
                            </span>
                        </td>
                        <td>0.200s</td>
                        <td>
                            
                            <div class="error-details">
                                Assertion failed
                                
                                <br>类型: AssertionError
                                
                            </div>
                            
                        </td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
    </div>
</body>
</html> 